Skip to content

Enhance size extraction from Stremio sources to support European formats#196

Merged
Sam-Max merged 2 commits into
Sam-Max:mainfrom
nat80:parse-european-size
May 25, 2026
Merged

Enhance size extraction from Stremio sources to support European formats#196
Sam-Max merged 2 commits into
Sam-Max:mainfrom
nat80:parse-european-size

Conversation

@nat80
Copy link
Copy Markdown
Contributor

@nat80 nat80 commented May 20, 2026

No description provided.

nat80 and others added 2 commits May 21, 2026 00:32
Replace global str.replace(",", ".") with re.sub(r"(\d),(\d)", ...)
to avoid corrupting sizes with thousands separators.

Add 27 parametrized tests for convert_size_to_bytes covering:
standard units, European units (Go/Mo/Ko), decimal comma,
case insensitivity, and invalid inputs.
@Sam-Max Sam-Max merged commit e028c0c into Sam-Max:main May 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants